﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MobileMasterPage.master"
    AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Mobile_Default" EnableViewState="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="headPlaceHolder" runat="Server">
    <link rel="stylesheet" type="text/css" href="<%=ResolveUrl("~/css/M_HomePage.css?2014120701") %>" />
    <link rel="stylesheet" type="text/css" href='<%=ResolveUrl("~/css/M_Share.css") %>' />
    <link rel="stylesheet" type="text/css" href='<%=ResolveUrl("~/css/M_Public.css?i=3") %>' />
    <script type="text/javascript" src='<%=ResolveUrl("~/Scripts/swiper-2.1.min.js") %>'></script>
    <script type="text/javascript" src='<%=ResolveUrl("~/Scripts/lazyload.js") %>'></script>

    <script type="text/javascript" charset="utf-8">
        $(function () {
            $("img").lazyload({
                effect: "fadeIn"
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolder" runat="Server">
    <article>
        <!--焦点图开始-->
        <div class="swiper-container overflow">
            <div class="swiper-wrapper" id="swiper-wrapper">
                <asp:Repeater ID="rp_swiper" runat="server">
                    <ItemTemplate>
                        <div class="swiper-slide">
                            <a href='<%#Eval("url") %>'>
                                <img src='<%#Eval("img") %>' alt='' title='<%#Eval("title") %>'>
                            </a>
                            <div class="s_title"><%#Eval("title") %></div>
                        </div>
                    </ItemTemplate>
                </asp:Repeater>
            </div>
            <div class="pagination"></div>
        </div>
        <script type="text/javascript">
            var newSlideSize = function slideSize() {
                var w = Math.ceil($(".swiper-container").width() / 2.15);//1.96
                $(".swiper-container,.swiper-wrapper,.swiper-slide").height(w);
            };
            newSlideSize();
            $(window).resize(function () {
                newSlideSize();
            });
            window.onload = function () {
                var mySwiper = new Swiper('.swiper-container', {
                    pagination: '.pagination',
                    loop: true,
                    autoplay: 3000,
                    paginationClickable: true,
                    onSlideChangeStart: function () {
                        //回调函数
                    }
                });
                cTab("#tab1", "#con1");
                cTab("#tab2", "#con2");
            };
        </script>
        <!--焦点图结束-->
    </article>
    <article class="article_body">
        <div class="article_top">
            <a href="javascript:void(0);" class="article_title">社团活动</a>
        </div>
        <section class="newsList">
            <ul>
                <asp:Repeater ID="huodong_list" runat="server">
                    <ItemTemplate>
                        <li>
                            <img alt="" src='<%=ResolveUrl("~/images/SmsMsgSending.gif")%>' />
                            <a href='<%#ResolveUrl("~/M/News-"+Eval("BigClassId")+"-"+Eval("SmallClassId")+"-"+Eval("id")+".aspx")%>' class="list_a"><%#Eval("NewTitle").ToString().Length > 15 ? Eval("NewTitle").ToString().Substring(0, 15) + "..." : Eval("NewTitle")%></a>
                        </li>
                    </ItemTemplate>
                </asp:Repeater>
            </ul>
        </section>
        <a href="" class="article_more">进入社团活动页面</a>
    </article>
    <article class="article_body">
        <div class="article_top">
            <a href="javascript:void(0);" class="article_title">社团公告</a>
        </div>
        <section class="newsList">
            <ul>
                <asp:Repeater ID="gonggao_list" runat="server">
                    <ItemTemplate>
                        <li>
                            <img alt="" src='<%=ResolveUrl("~/images/SmsMsgSending.gif")%>' />
                            <a href='<%#ResolveUrl("~/M/News-"+Eval("BigClassId")+"-"+Eval("SmallClassId")+"-"+Eval("id")+".aspx")%>' class="list_a"><%#Eval("NewTitle").ToString().Length > 15 ? Eval("NewTitle").ToString().Substring(0, 15) + "..." : Eval("NewTitle")%></a>
                        </li>
                    </ItemTemplate>
                </asp:Repeater>
            </ul>
        </section>
        <a href="" class="article_more">进入社团公告页面</a>
    </article>
    <article class="article_body">
        <div class="article_top">
            <a href="javascript:void(0);" class="article_title">留言板</a>
        </div>
        <section class="newsList">
            <ul>
                <asp:Repeater ID="liuyan_list" runat="server">
                    <ItemTemplate>
                        <li>
                            <img alt="" src='<%=ResolveUrl("~/images/SmsMsgSending.gif")%>' />
                            <a href="" class="list_a"><%#Eval("Content").ToString().Length > 15 ? Eval("Content").ToString().Substring(0, 15) + "..." : Eval("Content")%></a>
                        </li>
                    </ItemTemplate>
                </asp:Repeater>
            </ul>
        </section>
        <a href="" class="article_more">进入留言板页面</a>
    </article>
    <article class="article_body">
        <div class="article_top">
            <a href="javascript:void(0);" class="article_title">爱心便利贴</a>
        </div>
        <section class="newsList">
            <ul>
                <asp:Repeater ID="xuyuan_list" runat="server">
                    <ItemTemplate>
                        <li>
                            <img alt="" src='<%=ResolveUrl("~/images/SmsMsgSending.gif")%>' />
                            <a href="" class="list_a"><%#Eval("qgame").ToString().Length > 15 ? Eval("qgame").ToString().Substring(0, 15) + "..." : Eval("qgame")%></a>
                        </li>
                    </ItemTemplate>
                </asp:Repeater>
            </ul>
        </section>
        <a href="<%=ResolveUrl("~/m/WishingWall.aspx")%>" data-ajax="false" class="article_more">进入许愿墙页面</a>
    </article>
</asp:Content>
